package com.example.service;

import com.example.bean.Student;
import com.example.dao.StudentAddDao;
import com.example.factory.StudentAddDaoFactory;

public class StudentAddService {
    private StudentAddDao studentAddDao;
    public StudentAddService(){
        this.studentAddDao= StudentAddDaoFactory.getStudentAddDao();
    }
    //自定义成员方法实现学员信息的添加
    public int StudentAddServer(Student student){
        return studentAddDao.studentadd(student);
    }
}
